package BanyuanClub.Work.Day0224.TeDate;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class MyDate {
    public static void main(String[] args) {
        Date da = new Date();
        SimpleDateFormat sp = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        String s = sp.format(da);
        System.out.println(s);
        Calendar c = Calendar.getInstance();
        c.setTime(da);
        c.set(1921,6,23);
        System.out.println(c.get(Calendar.DAY_OF_WEEK));
    }
}
